import 'package:flutter_app/generated/json/base/json_convert_content.dart';
import 'package:flutter_app/bean/list_other_problem_entity.dart';
import 'package:flutter_app/bean/file_path_entity.dart';

ListOtherProblemEntity $ListOtherProblemEntityFromJson(Map<String, dynamic> json) {
	final ListOtherProblemEntity listOtherProblemEntity = ListOtherProblemEntity();
	final List<ListOtherProblemContent>? content = jsonConvert.convertListNotNull<ListOtherProblemContent>(json['content']);
	if (content != null) {
		listOtherProblemEntity.content = content;
	}
	final int? pageNum = jsonConvert.convert<int>(json['pageNum']);
	if (pageNum != null) {
		listOtherProblemEntity.pageNum = pageNum;
	}
	final int? pageSize = jsonConvert.convert<int>(json['pageSize']);
	if (pageSize != null) {
		listOtherProblemEntity.pageSize = pageSize;
	}
	final int? totalPages = jsonConvert.convert<int>(json['totalPages']);
	if (totalPages != null) {
		listOtherProblemEntity.totalPages = totalPages;
	}
	final int? totalSize = jsonConvert.convert<int>(json['totalSize']);
	if (totalSize != null) {
		listOtherProblemEntity.totalSize = totalSize;
	}
	return listOtherProblemEntity;
}

Map<String, dynamic> $ListOtherProblemEntityToJson(ListOtherProblemEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['content'] =  entity.content?.map((v) => v.toJson()).toList();
	data['pageNum'] = entity.pageNum;
	data['pageSize'] = entity.pageSize;
	data['totalPages'] = entity.totalPages;
	data['totalSize'] = entity.totalSize;
	return data;
}

ListOtherProblemContent $ListOtherProblemContentFromJson(Map<String, dynamic> json) {
	final ListOtherProblemContent listOtherProblemContent = ListOtherProblemContent();
	final String? content = jsonConvert.convert<String>(json['content']);
	if (content != null) {
		listOtherProblemContent.content = content;
	}
	final String? createTime = jsonConvert.convert<String>(json['createTime']);
	if (createTime != null) {
		listOtherProblemContent.createTime = createTime;
	}
	final List<FilePathEntity>? fileList = jsonConvert.convertListNotNull<FilePathEntity>(json['fileList']);
	if (fileList != null) {
		listOtherProblemContent.fileList = fileList;
	}
	final String? flowStatus = jsonConvert.convert<String>(json['flowStatus']);
	if (flowStatus != null) {
		listOtherProblemContent.flowStatus = flowStatus;
	}
	final String? id = jsonConvert.convert<String>(json['id']);
	if (id != null) {
		listOtherProblemContent.id = id;
	}
	final String? title = jsonConvert.convert<String>(json['title']);
	if (title != null) {
		listOtherProblemContent.title = title;
	}
	final String? userId = jsonConvert.convert<String>(json['userId']);
	if (userId != null) {
		listOtherProblemContent.userId = userId;
	}
	final String? userName = jsonConvert.convert<String>(json['userName']);
	if (userName != null) {
		listOtherProblemContent.userName = userName;
	}
	return listOtherProblemContent;
}

Map<String, dynamic> $ListOtherProblemContentToJson(ListOtherProblemContent entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['content'] = entity.content;
	data['createTime'] = entity.createTime;
	data['fileList'] =  entity.fileList?.map((v) => v.toJson()).toList();
	data['flowStatus'] = entity.flowStatus;
	data['id'] = entity.id;
	data['title'] = entity.title;
	data['userId'] = entity.userId;
	data['userName'] = entity.userName;
	return data;
}